{template header}
<script language="javascript" type="text/javascript" src="../extend/tiny_mce/tiny_mce.js"></script>
<script language="javascript">	

tinyMCE.init({
	// General options
	mode : "textareas",
	theme : "advanced",
	language : "ch",
	plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups",

	// Theme options
	theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
	theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
	theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
	theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true,

	// Example word content CSS (should be your site CSS) this one removes paragraph margins
	content_css : "extend/tiny_mce/css/word.css",

	// Drop lists for link/image/media/template dialogs
	template_external_list_url : "lists/template_list.js",
	external_link_list_url : "lists/link_list.js",
	external_image_list_url : "lists/image_list.js",
	media_external_list_url : "lists/media_list.js",

	// Replace values for the template plugin
	template_replace_values : {
		username : "Some User",
		staffid : "991234"
	}
});

</script>
<div class="path">
	<span><a href="article-admin.htm">文章管理</a></span>
	<span>添加文章</span>
</div>
<div class="content">
	<div class="c1">
	<form action="article-$action.htm?articleId=$articleId" method="post" enctype="multipart/form-data">
	      <table width="100%" border="0" cellspacing="2" cellpadding="2" style="text-align:center">
	        <tr>
	          <td width="10%" height="30" align="right">类型：</td>
	          <td width="90%" align="left">
	          <select name="article[categoryId]">
			<!--{loop $categoryList $v}-->
				<option value="{$v[categoryId]}" {if $category[parentId]==$v[categoryId]}selected="selected"{/if}>{$v[cateName]}</option>
				<!--{/loop}-->
	          </select>
	          </td>
	        </tr>
	        <tr>
	          <td height="30" align="right">标题：</td>
	          <td align="left"><input type="text" name="article[title]" value="$article[title]" style="width:300px;" /></td>
	        </tr>
	        <tr>
	          <td height="30" align="right">URL跳转：</td>
	          <td align="left"><input type="text" name="article[url]" value="$article[url]" style="width:300px;" /></td>
	        </tr>
	        <tr>
	        	<td height="30" align="right">位置：</td>
	         	<td align="left">
	         		<input type="radio" name="article[position]" value="1" {if $article[position]==1}checked="checked"{/if}/>首页焦点图
	         		
	         	</td>
	        </tr>
	        <tr>
	          <td height="30" align="right">作者：</td>
	          <td align="left"><input type="text" name="article[author]" value="$article[author]" /></td>
	        </tr>
	        <tr>
	        	<td height="30" align="right">来源：</td>
	          	<td align="left"><input type="text" name="article[source]" value="$article[source]" /></td>
	        </tr>
	        <tr>
	        	<td height="30" align="right">上传图片：</td>
	          	<td align="left"><input type="file" name="picture" />{if $article[picture]}<a href="$article[picture]" target="_blank">查看原图</a>{/if}
          	    <input name="article[storeId]" type="hidden" id="article[storeId]" value="2"></td>
	        </tr>
	        <tr>
	        	<td height="30" align="right">内容：</td>
	          	<td align="left">
				<textarea id="article[content]" name="article[content]" rows="15" cols="80" style="width: 80%">$article[content]</textarea>
	          	</td>
	        </tr>
	        <tr>
	          <td height="30" align="right">&nbsp;</td>
	          <td align="left">
			<input type="submit" class="bigButton" name="submitTo" value="  提 交  " />
	          </td>
	        </tr>
	      </table>
	      </form>
	</div>
</div>
{template footer}